
import LuaDebuggerLib

def pfl(obj):
	file = obj['Info']['short_src']
	line = obj['Info']['currentline']
	print file, line


c = LuaDebuggerLib.JSONLuaDebuggerClient()

pfl( c.Connect() )

while True:
	op = raw_input('>')
	op = { 'Op': op }
	obj = c.Op(op)
	if not obj:
		break
	pfl(obj)

